package com.hc.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hc.dao.IAccountDao;
import com.hc.domain.Account;
import com.hc.service.IAccountService;
@Service("accountService")
public class AccountServiceImpl implements IAccountService{
	@Resource
	private IAccountDao accountDao;
	
	@Override
	public Account getAccountByTel(String tel) {
		return accountDao.getAccountByTel(tel);
		
	}

	@Override
	public void updateOrSaveAccount(Account account) {
		accountDao.updateOrSaveAccount(account);
	}

}
